﻿using FigureDraw.Diagram;
using FigureDraw.Graphic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FigureDraw.Shapes.ActivityShape
{
    class MoveActivity : MyShape
    {
        double x2;
        double y2;

        public MoveActivity(double x1, double y1, double x2, double y2)
            : base(x1, y1)
        {
            this.x2 = x2;
            this.y2 = y2;
        }

        public override void Draw(CommonGraphic graphic)
        {
            graphic.DrawLine(x, y, x2, y2);
            graphic.DrawLine(x2, y2, x2 - 10, y2 - 10);
            graphic.DrawLine(x2, y2, x2 - 10, y2 + 10);
        }

        public override MyShape Clone(BlockDiagram diagram)
        {
            throw new NotImplementedException();
        }
    }
}
